package com.dogantekin.allseeingeye;

import com.dogantekin.allseeingeye.eye.Eye;
import com.dogantekin.allseeingeye.sensor.SensorFactory;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class AllSeeingEye extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.opening);
		
		SensorFactory.getInstance(this);
		
		Button whereButton = (Button) findViewById(R.id.button_where);
		whereButton.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(getApplicationContext(),Eye.class);
				startActivity(intent);
				finishActivity();
			}			
		});		
	}
	
	final void finishActivity() {
		finish();
	}	
}